package com.qut.graduate.busrtquery.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * @Author WLL
 * @Time: 2019/3/23 16:45
 */
public abstract class BaseFragment extends Fragment implements View.OnClickListener{

    protected View mRootView;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mRootView = inflater.inflate(getLayoutId(), container, false);
        init();
        return mRootView;
    }

    protected abstract int getLayoutId();

    protected abstract void init();

}
